﻿using System;


using Microsoft.Extensions.DependencyInjection;

using Xc.DataAccess.Core.Services;
using Xc.Logics.AepCoap.Services;
using Xc.Logics.AepCoap.Views;
using Xc.Views.Core;

using XC.Keys;

namespace Xc.Logics.AepCoap
{
    /// <summary>
    /// 启动类
    /// </summary>
    [Boot("Aep平台设备导入软件","V2.0.0.0")]
    public class StartUp : ApplicationBooster<AppSetting>
    {
        protected override void BeforeBuild(IServiceCollection serviceDescriptors)
        {
            serviceDescriptors.AddSettingService<AppSetting>();
            serviceDescriptors.AddTransient<IAepUploadService, AepUploadService>();
            serviceDescriptors.AddTransient<LogView>();
            serviceDescriptors.AddTransient<ISecretKeyHelper, SecretKeyHelper>();
            serviceDescriptors.AddCsvService();
            serviceDescriptors.AddEncodingServcie();
            serviceDescriptors.AddAepCoapService();
            serviceDescriptors.AddTransient<MainView>();
            serviceDescriptors.AddConverterService();
            base.BeforeBuild(serviceDescriptors);
        }
    }
}
